//字典API
import request from "../utils/request";

const api_url=`/admin/cmn/dict`

export default {
  //根据数据字典id查询子数据列表
  findDictionaryChildData(parentId){
    return request({
      url: `${api_url}/findChildData/${parentId}`,
      //url: api_url+`/findChildData/${parentId}`,
      method: "GET"
    })
  },

  //根据dictCode获取下级节点
  findDictionaryByDictCode(dictCode) {
    return request({
      url: `${api_url}/findByDictCode/${dictCode}`,
      //url: api_url+`/findByDictCode/${dictCode}`,
      method: "GET"
    })
  }
}

